﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web.Security;

namespace BBICMS.Model.ModelRole
{
    public class RoleEvaluator
    {

        public bool CanEdit
        {
            get
            {
                return Roles.IsUserInRole("Administrators") || Roles.IsUserInRole("Users");
            }
        }

        public bool CanDelete
        {
            get
            {
                return Roles.IsUserInRole("Administrators");
            }
        }
    }
}
